package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Cascade;
//import org.springframework.data.annotation.Id;
@Entity
@Table(name = "sl_au_customerAllocation")
public class customerAllocation extends Root{
	@Column
	private String name;
	@Column
	private String sex;
	/**
	 * 职务
	 */
	@Column(name="sPosition")
	private String position;
	/**
	 * 岗位
	 */
	@Column(name="sPost")
	private String post;
	/**
	 * 人员顺序号
	 */
	@Column(name="sOrderNum")
	private String orderNum;
	/**
	 * 人员登录视图
	 */

	@OneToOne	
	@JoinColumn(name="empId",insertable = false, updatable = false)
	private EXDELoginInfo empLogin;
	
	@Column(name="empId")
	private String empId;
	
	@ManyToOne
	@JoinColumn(unique = false)
	private SaleArea saleArea;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public SaleArea getSaleArea() {
		return saleArea;
	}

	public void setSaleArea(SaleArea saleArea) {
		this.saleArea = saleArea;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public EXDELoginInfo getEmpLogin() {
		return empLogin;
	}

	public void setEmpLogin(EXDELoginInfo empLogin) {
		this.empLogin = empLogin;
	}

	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	
}
